import paramiko


def change(b):
    a = b.decode()
    return a.replace('\r\r', '\r')


paramiko.util.log_to_file('paramike.log')

ssh = paramiko.SSHClient()
ssh.load_system_host_keys()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy)
ssh.connect(hostname='192.168.1.198', port=22, username='admin', password='admin.01')
stdin, stdout, stderr = ssh.exec_command('show status')
stdin.write("show version\n")
print(change(stdout.read()))
ssh.close()
